package sys.knot.data.access;

import javax.sql.DataSource;

public class NamedDataSource {
    private DataSource dataSource;
    private String name;

    public NamedDataSource(String name, DataSource dataSource) {
        this.name = name;
        this.dataSource = dataSource;
    }

    public DataSource getDataSource() {
        return dataSource;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return name;
    }
}
